package io.renren.modules.areainfos.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Set;


/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-30 17:39:18
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AreainfosEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//地区号
	private String areaid;
	//地区名
	@NotBlank(message = "地区名称不能为空",groups = {AddGroup.class, UpdateGroup.class})
	private String areaname;
	//id(主键)
	@NotNull(message = "id不能为空",groups = {UpdateGroup.class})
	private Integer columnid;
	//父id
	@NotNull(message = "父级id不能为空",groups = {AddGroup.class, UpdateGroup.class})
	private Integer parentid;
	//无限极路径
	private String columnpath;
	//无限极层次
	private Integer columndepth;
	//序号
	@NotNull(message = "序号不能为空",groups = {AddGroup.class, UpdateGroup.class})
	private Integer columnorder;
	//子节点个数
	private Integer childnum;
	//地址内容
	private String address;
	//邮编
	private String postcode;
	//软删除
	private Integer isdel;
	//是否是父节点
	private Boolean isParent;
	/**
	 * ztree属性
	 */
	private Boolean open;

	private Set children;

	private String parentname;


	public Boolean getIsParent() {
		return isParent;
	}

	public void setIsParent(Boolean parent) {
		isParent = parent;
	}

	public String getParentname() {
		return parentname;
	}

	public void setParentname(String parentname) {
		this.parentname = parentname;
	}

	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public Set getChildren() {
		return children;
	}

	public void setChildren(Set children) {
		this.children = children;
	}

	/**
	 * 设置：地区号
	 */
	public void setAreaid(String areaid) {
		this.areaid = areaid;
	}
	/**
	 * 获取：地区号
	 */
	public String getAreaid() {
		return areaid;
	}
	/**
	 * 设置：地区名
	 */
	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}
	/**
	 * 获取：地区名
	 */
	public String getAreaname() {
		return areaname;
	}
	/**
	 * 设置：无限极id
	 */
	public void setColumnid(Integer columnid) {
		this.columnid = columnid;
	}
	/**
	 * 获取：无限极id
	 */
	public Integer getColumnid() {
		return columnid;
	}
	/**
	 * 设置：父id
	 */
	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}
	/**
	 * 获取：父id
	 */
	public Integer getParentid() {
		return parentid;
	}
	/**
	 * 设置：无限极路径
	 */
	public void setColumnpath(String columnpath) {
		this.columnpath = columnpath;
	}
	/**
	 * 获取：无限极路径
	 */
	public String getColumnpath() {
		return columnpath;
	}
	/**
	 * 设置：无限极层次
	 */
	public void setColumndepth(Integer columndepth) {
		this.columndepth = columndepth;
	}
	/**
	 * 获取：无限极层次
	 */
	public Integer getColumndepth() {
		return columndepth;
	}
	/**
	 * 设置：序号
	 */
	public void setColumnorder(Integer columnorder) {
		this.columnorder = columnorder;
	}
	/**
	 * 获取：序号
	 */
	public Integer getColumnorder() {
		return columnorder;
	}
	/**
	 * 设置：子节点个数
	 */
	public void setChildnum(Integer childnum) {
		this.childnum = childnum;
	}
	/**
	 * 获取：子节点个数
	 */
	public Integer getChildnum() {
		return childnum;
	}
	/**
	 * 设置：地址内容
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * 获取：地址内容
	 */
	public String getAddress() {
		return address;
	}
	/**
	 * 设置：邮编
	 */
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	/**
	 * 获取：邮编
	 */
	public String getPostcode() {
		return postcode;
	}
	/**
	 * 设置：软删除
	 */
	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}
	/**
	 * 获取：软删除
	 */
	public Integer getIsdel() {
		return isdel;
	}
}
